<%-- 
    Document   : form_dangky
    Created on : 17-10-2011, 20:18:47
    Author     : VuTienIT
--%>
<%@page import="java.util.ArrayList" %>
<%@page import="model.pojo.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
KhachHangPOJO ssDangNhap = null;
if(session.getAttribute("KhachHang")==null)
{
    ssDangNhap = new KhachHangPOJO();
    session.setAttribute("KhachHang", ssDangNhap);
}
else
{
    ssDangNhap = (KhachHangPOJO)session.getAttribute("KhachHang");
}
%>
<!DOCTYPE html>
<div id="content_middle">
    <h3>Cài đặt tài khoản</h3>
<div class="detail_box">
  <div class="sidebar_box_content">  
      <div id="login_box">
<form id="form1" name="form1" method="post" action="ThongTinKH?Page=info&Action=Update">
  <table width="100%" border="0">
    <tr>
      <td width="20%">Email</td>
      <td width="80%" align="left"><label>
              <input type="text" name="email" id="email" disabled="disabled" value="<%=ssDangNhap.getEmail()%>" />
      </label></td>
    </tr>
    <tr>
      <td width="20%"></td>
      <td width="80%" align="left">
      </td>
    </tr>
    <tr>
      <td width="20%">Tên tài khoản</td>
      <td width="80%" align="left"><label>
        <input type="text" name="tentaikhoan" id="tentaikhoan" disabled="disabled" value="<%=ssDangNhap.getTenTruyCap()%>" />
      </label></td>
    </tr>
    <tr>
      <td width="20%"></td>
      <td width="80%" align="left">
      </td>
    </tr>
    <tr>
      <td width="20%">Mật khẩu mới</td>
      <td width="80%" align="left"><label>
        <input type="text" name="matkhau" id="matkhau" />
      </label></td>
    </tr>
    <tr>
      <td width="20%">&nbsp;</td>
      <td width="80%" align="left">Để trống nếu không muốn thay đổi mật khẩu</td>
    </tr>
    <tr>
      <td width="20%">Gõ lại mật khẩu</td>
      <td width="80%" align="left"><label>
        <input type="text" name="golaimatkhau" id="golaimatkhau" />
      </label></td>
    </tr>
    <tr>
      <td width="20%">&nbsp;</td>
      <td width="80%" align="left" class="style2">
          <%
            if (request.getAttribute("Error_MatKhauRe") != null) {
                out.println(request.getAttribute("Error_MatKhauRe"));
            }
            %>
      </td>
    </tr>
    <tr>
      <td width="20%">Số điện thoại</td>
      <td width="80%" align="left"><label>
              <input type="text" name="sodienthoai" id="sodienthoai" value="<%=ssDangNhap.getSoDienThoai()%>" />
      </label></td>
    </tr>
    <tr>
      <td width="20%">Thành phố</td>
      <td width="80%" align="left"><label>
        <select name="thanhpho" id="thanhpho">
          <option value="0">Hồ Chí Minh</option>
          <option value="1">Hà Nội</option>
        </select>
      </label></td>
    </tr>
    <tr>
      <td width="20%" align="right">&nbsp;</td>
      <td width="80%" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td width="20%" align="right"><label>
        <input type="submit" name="Submit" id="Submit" value="Cập nhật" />
      </label></td>
      <td width="80%" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td width="20%">&nbsp;</td>
      <td width="80%" align="left" class="style2">
          <%
            if (request.getAttribute("ThongBao") != null) {
                out.println(request.getAttribute("ThongBao"));
            }
            %>
      </td>
    </tr>
  </table>
</form>
      </div>
</div>
<p>&nbsp;</p>
</div>

<div class="cleaner"></div>
</div>